package com.richfit.cuba.modular.lsms.uploadFile.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.richfit.cuba.modular.lsms.uploadFile.entity.UkeyUploadfile;

/**
 * <p>
 * 证书上传 服务类
 * </p>
 *
 * @author Alan
 * @since 2018-11-07
 */
public interface IUkeyUploadfileService extends IService<UkeyUploadfile> {

	public String uploadFile(HttpServletRequest request, HttpServletResponse response,String localPath);
	
	public Page<UkeyUploadfile> findPageForUkey(Page<UkeyUploadfile> page, String condition);

	public boolean deleteFile(String ukeyUploadfileId);
	/**
	 * 
	 * @Title: saveUpload   
	 * @Description: insert or update ukey upload file from web page<br>
	 * if id is null , insert function.<br>
	 * else update funciton
	 * by Alan 2019-04-07 10:09:49
	 * @param ukeyUploadfile
	 * @return      
	 * @return  boolean
	 * @throws Exception 
	 */
	public boolean saveUpload(UkeyUploadfile ukeyUploadfile, int certificateType) throws Exception;

	public boolean isBind(String ukeyUploadfileId);

}
